{extend name="../application/public/base.html" /}
{block name="head"}
    <link rel="stylesheet" href="ADMIN_CUSTOM/css/btn.css">
    <link rel="stylesheet" href="ADMIN_CUSTOM/css/form.css">
{/block}
{block name="body"}
    <body>
        <div class="x-nav">
			<span class="layui-breadcrumb">
				<a href="">首页</a>
				<a href="">演示</a>
				<a><cite>导航元素</cite></a>
			</span>
          	<a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
            <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
        </div>
	<form class="layui-form" lay-filter="add_form">
		<ul class="form-btn">
	  	</ul>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                        	<!-- 订单信息 start -->
                            <div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
								<ul class="order_table">
									<li>订单信息</li>
								</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<input type="hidden" name="repair_id" value="{$row.repair_id}">
								 	<span>维修编号：{$row.repair_sn}</span>
								 	<span>订单时间：{$row.addtime}</span>
								 	<span>维修门店：{$row.shopname}</span>
								 	<span>营业员：{$row.admin_nkname}</span>
								 	{if condition="$row.technician_id > 0"}
								 	<span>维修员：{$row.tech_nkname}</span>
								 	{/if}
							  	</div>
							</div>
							<!-- 订单信息 end -->
							<!-- 客户信息 start -->
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>客户信息</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
								 	<span>客户姓名：{$row.username}</span>
								 	<span>称呼：{$row.nkname}</span>
								 	<span>联系方式：{$row.phone}</span>
								 	<span>备用联系方式：{$row.spare_phone}</span>
								 	<span>客户编号：{$row.user_sn}</span>
							  	</div>
							</div>
							<!-- 客户信息 end -->
							<!-- 维修设备信息 start -->
							<div class="layui-tab layui-tab-card" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>维修设备信息</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<div class="tab-content-form">
							  			<span>设备名称：{$row.goods_name}</span>
							  		</div>
								 	<div class="tab-content-form">
							  			<span>设备分类：{$row.category_name}</span>
									 	<span>设备品牌：{$row.brand_name}</span>
									 	<span>设备型号：{$row.marker}</span>
									 	<span>颜色：{$row.colour_name}</span>
							  		</div>
							  		<div class="tab-content-form">
							  			<span>IMEI：{$row.imei}</span>
									 	<span>S/N：{$row.sn}</span>
							  		</div>
								 	<div class="tab-content-form">
							  			<!-- <span>设备锁屏密码：{$row.colour_name}</span> -->
								 		<span>数字密码：{$row.pwd}</span>
							  		</div>
							  		<div class="tab-content-form">
							  			<span>客户物品：{$row.cus_goods}</span>
							  		</div>
								 	<div class="tab-content-form">
							  			<span>保修类型：{$row.is_prote_text}</span>
							  		</div>
							  	</div>
							</div>
							<!-- 维修设备信息 end -->
							<!-- 维修故障信息 start -->
							<div class="layui-tab layui-tab-card need-up" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>维修故障信息</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<div class="tab-content-form">
							  			<span>外观描述：{$row.wg_des}</span>
							  		</div>
								 	<div class="tab-content-form">
							  			<span>故障描述：{$row.gz_des}</span>
							  		</div>
							  		<div class="tab-content-form">
							  			<span>故障备注：{$row.gz_remarks}</span>
							  		</div>
								 	<div class="tab-content-form">
							  			<span>处理办法：{$row.solutions}</span>
							  		</div>
							  	</div>
							</div>
							<!-- 维修故障信息 end -->
							<!-- 维修配件 start -->
							<div class="layui-tab layui-tab-card need-up" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>维修配件</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<table class="layui-table layui-form" id="repair-bind-goods">
									</table>
							  	</div>
							  	<div class="layui-tab-content tab-content-form" style="padding: 0 0 10px 0;">
						  			<span style="margin-left: 10px;">配件费用（元）：{$row.parts_money}</span>
						  			<span>预计时长(天）：{$row.total_days}</span>
						  		</div>
							</div>
							<!-- 维修配件 end -->
							
							<!-- 维修进度 start -->
							{if condition="in_array($row.state,[4,6,8,9])"}
							<div class="layui-tab layui-tab-card need-up" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>维修进度</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form" id="repair_log" >
							  		{volist name="$row.repair_log" id="v"}
							  		<div class="tab-content-form every_log">
							  			<span style="width: 120px;">{$v.addtime}</span>
							  			<span style="width: 300px;">{$v.goods_sn}</span>
							  		</div>
							  		{/volist}
							  	</div>
							</div>
							{/if}
							<!-- 维修进度 end -->
							<!-- 维修描述 start -->
							<div class="layui-tab layui-tab-card need-up" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>维修描述</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<div class="tab-content-form">
							  			{$row.describes}
							  		</div>
							  	</div>
							</div>
							<!-- 维修描述 end -->
							
							<!-- 维修金信息 start -->
							<div class="layui-tab layui-tab-card need-up" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>维修金信息</li>
									<div onclick="xadmin.open('付款记录','/log/pay_log/index/ids/{$row.repair_id}','800','400')" class="layui-btn white-border-btn">付款记录</div>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<div class="tab-content-form">
							  			<span>维修总金额（元）：{$row.repair_money}</span>
							  			<span>已支付金额（元）：{$row.actual_money}</span>
							  			<span>待支付金额（元）：{$row.stay_money}</span>
							  		</div>
								 	<div class="tab-content-form">
							  			<span>配件费用（元）：{$row.parts_money}</span>
							  			<span>人工费用（元）：{$row.people_money}</span>
							  		</div>
							  	</div>
							</div>
							<!-- 维修金信息 end -->
							<!-- 其他备注 start -->
							<div class="layui-tab layui-tab-card need-up" style="margin-bottom:15px;">
							  	<ul class="order_table">
									<li>其他备注</li>
							  	</ul>
							  	<div class="layui-tab-content tab-content-form">
							  		<div class="tab-content-form">
							  			<span>{$row.remarks}</span>
							  		</div>
							  	</div>
							</div>
							<!-- 其他备注 end -->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
    </body>
{/block}
{block name="script"}
	<script type="text/javascript">
		var repair_id = "{:request()->param('ids')}" 
	</script>
	<script type="text/javascript" src="ADMIN_CUSTOM/js/repair/repair_add.js"></script>
	<script type="text/javascript" src="ADMIN_CUSTOM/js/repair/repair_state.js"></script>
{/block}